import Request from "../../core";
// 获取商品
export const getCategoryAndGoods = (data) => {
    return Request.get("/pub/mall/anon/goods/getCategoryAndGoods", data,{
        isLoading: false,
    });
};
// 获取搜索商品
export const searchGoods = (data) => {
    return Request.get("/pub/mall/anon/goods/searchGoods", data,{
        isLoading: false,
    });
};
// 获取清空购物车
export const clearCart = (data) => {
    return Request.get("/mall/mobile/cart/pub/clearCart", data,{
        isLoading: false,
    });
};
// 获取购物车商品
export const queryCartList = (data) => {
    return Request.get("/mall/mobile/cart/pub/queryList", data, {
        isLoading: false,
    });
};
// 保存商品
export const saveCartItem = (data) => {
    return Request.post("/mall/mobile/cart/pub/saveItem", data, {
        isLoading: false,
    });
};